/*!
 * egpusers-inc.js
 * 
 *  tetsuya_odaka (EzoGP)
 * 
 * (C) 2009, EzoGP.
 * $Id: syracava-1.0-min.js 455 2009-04-08 08:54:14Z tetsuya_odaka $
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Batch Validation Objectのインスタンス化
var validateObj = new MyValidateBatchRemote(
		{validateURL : '../Myznala/myAsyncValidate.php'}
);
// inputタグのonclickとonblurにsubscribe.
YAHOO.util.Event.onDOMReady(
	validateObj.init,
	validateObj,
	true
);

// Submit Objectのインスタンス化
var submitObj = new MySubmit();
var config = {
		submitType	: 'Sync',
		submitURL	: 'not needed',
		submitForm	: 'form1',
		exitProc	: ''
}
// Entry画面のボタンにsubscribeする.
YAHOO.util.Event.on('egp-my-entry-button', 'click',
			function(evt){ 
				submitObj.submit(evt,config), null
			}
);
// Update画面のボタンにsubscribeする.
YAHOO.util.Event.on('egp-my-update-button', 'click',
			function(evt){ 
				submitObj.submit(evt,config), null
			}
);
